import api from '../../fetch/api'
import * as types from '../mutation-types';

// 通用配置
const state = {
	honours:[]
}

const actions = {
    getHonourList({ commit }, params) {
        api.get_honour_list(params).then(res => {
            commit(types.GET_HONOUR_LIST, res)
        })
    }
}

const getters = {
    honours: state => state.honours
}

const mutations = {
    [types.GET_HONOUR_LIST](state, res) {
        state.honours = res.data
    }
}

export default {
    state,
    actions,
    getters,
    mutations,
}